home *** CD-ROM | disk | FTP | other *** search
- /* Copyright, 1990, Regents of the University of Colorado */
- /* This program prints out messages from a two dimensional environment
- * structure. */
-
- #define P1 3
- #define P2 4
-
- environment node[P1:id1][P2:id2] {
- /* ==> Declaration of a two dimensional
- environment structure of size P1 by P2,
- declaring environment index indentifiers
- id1 and id2. */
- composite go()
-
- {
- printf ("node[%d][%d] says hello\n", id1, id2);
- /* ==> Uses the environment index identifiers
- id1 and id2. */
- }
-
- }
-
- environment host {
-
- void main ()
- {
- printf ("host says hello\n");
- go()#;
- printf ("host says goodbye\n");
- }
- }
-